/**
 * 图表公共配置
 */

export const globalConfig = () => {
  return {
    autoFit: false
  }
}

export const field = (obj = {}) => {
  return Object.assign({}, {
    xField: 'x',
    yField: 'value',
    seriesField: 'type'
  }, obj)
}